/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package strings;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author ww
 */
public class StringS {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
     BufferedReader bReader = new BufferedReader (new InputStreamReader(System.in));         
        String s;
    s = bReader.readLine();
     s = new StringBuffer(s).reverse().toString(); 
     //StringBuilder s = new StringBuilder("Это небольшая строка");  
    //reverse().toString();
 //   reverse().toString();
    System.out.println(s);
    }
}
